import Vue from "vue";
import VueRouter from "vue-router";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: 'mainPage',
  },
  {
    path: "/mainPage",
    name: "mainPage",
    component: () => import("../views/mainPage.vue")
  },
  {
    path: "/220breakPage",
    name: "220breakPage",
    component: () => import("../views/220breakPage.vue")
  },
  {
    path: "/zhubian",
    name: "zhubian",
    component: () => import("../views/zhubian.vue")
  },
  {
    path: "/ai",
    name: "ai",
    component: () => import("../views/ai.vue")
  },
	// 1号主变间隔分图
	{
	  path: "/main1IntervalGraph",
	  name: "main1IntervalGraph",
	  component: () => import("../views/main1IntervalGraph")
	},
	// 110kV平化线161间隔分图
	{
	  path: "/PingHua110kV161",
	  name: "PingHua110kV161",
	  component: () => import("../views/PingHua110kV161")
	},
	// 220kV桂平线253间隔分图
	{
	  path: "/Guiping220kV253",
	  name: "Guiping220kV253",
	  component: () => import("../views/Guiping220kV253")
	},
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
